<link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#dateinbegin" ).datepicker();
        $( "#dateinend" ).datepicker();
    });
</script>
<div style="margin-top: 8px;padding: 10px;font-size: 16px;">
    <form action="/admini/managereport/topchannel"  method="post" style="margin:0px" id="form1">
      <label for="starttime">日期时间：</label><input type="text" id="dateinbegin" name="dateinbegin" value="<?php echo $this->dateinbegin; ?>" />
      <label for="endtime">--&nbsp;</label><input type="text" id="dateinend" name="dateinend" value="<?php echo $this->dateinend; ?>" />
      <input type="submit" id="queryButton" name="queryButton" value="查询"/>
    </form>
</div>
<div class="dataTable">
    <table>  
        <tr>
            <th class="w0" width="10%">渠道商Id</th>
            <th class="w1" width="30%">渠道商名称</th>
            <th class="w2" width="30%">发运单次数</th>
            <th class="w3" width="30%">运单金额</th>	
        </tr>  

        <?php 
           $num = 0;
           $money = 0;
        ?>
        <?php foreach($this->list as $item){ ?>        
        <tr <?php if($item['name']){?>>
            <td class="w0" width="10%"><?php echo $item['channer']; ?></td>
            <td class="w1" nowrap align="center"><?php echo $item['name']; ?></td>
            <td class="w2" nowrap align="center"><?php echo $item['num']; ?></td>
            <td class="w3" nowrap align="center"><?php echo $item['sum']; ?></td>
         </tr>         
        <?php 
            $num = $num + $item['num'];
            $money = $money + $item['sum'];
        }} ?>
      </table>
    <div style="margin-top:20px;"><b><font size="4">总计运单次数：<?php echo $num; ?></font></b></div>
    <div style="margin-top:20px;"><b><font size="4">总计运单金额：<?php echo $money; ?></font></b></div>
</div>    


<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#starttime" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
        $( "#endtime" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>